<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<form id="questionEditFrom" method="post">
	<input type="hidden" id="question_id" name="id" value="${question.id }" />
	<table class="kv-table">
		<tr>
			<td class="kv-label" style="width: 15%;">问题分类：</td>
			<td class="kv-content" style="width: 35%;">
				<input type="hidden" id="question_questionTypeId" name="questionTypeId" value="${questionType.id }"/>
				<input id="question_questionTypeName" name="questionTypeName" value="${questionType.name }" readonly="readonly" style="width:180px;height:30px;"/>
			</td>
			<td id="previewWindow" class="kv-label" rowspan="4" colspan="2" style="width: 50%;">预览</td>
		</tr>
		<tr>
			<td class="kv-label">状态：</td>
			<td class="kv-content">
				<select id="question_state" name="state" style="width:185px;height:35px;line-height:35px;">
					<option value=""></option>
					<c:forEach var="dict" items="${STATE }">
					<option value="${dict.dictKey }" ${dict.dictKey == question.state ? "selected" : ""}>${dict.dictValue }</option>
					</c:forEach>
				</select>
			</td>
		</tr>
		<tr>
			<td class="kv-label">类型：</td>
			<td class="kv-content">
				<select id="question_type" name="type" style="width:185px;height:35px;line-height:35px;">
					<option value=""></option>
					<c:forEach var="dict" items="${QUESTION_TYPE }">
					<option value="${dict.dictKey }" ${dict.dictKey == question.type ? "selected" : ""}>${dict.dictValue }</option>
					</c:forEach>
				</select>
			</td>
		</tr>
		<tr>
			<td id="titleTd1" class="kv-label">标题：</td>
			<td class="kv-content">
				<textarea id="question_title" name="title" style="width: 90%;height: 80px;">${question.title }</textarea>
			</td>
		</tr>
		<tr id="optionATr" style="display: none;">
			<td id="optionATd1" class="kv-label"></td>
			<td class="kv-content">
				<textarea id="question_optionA" name="optionA" style="width: 90%;height: 120px;">${question.optionA }</textarea>
			</td>
		</tr>
		<tr id="optionBTr" style="display: none;">
			<td id="optionBTd1" class="kv-label"></td>
			<td class="kv-content">
				<textarea id="question_optionB" name="optionB" style="width: 90%;height: 120px;">${question.optionB }</textarea>
			</td>
		</tr>
		<tr id="optionCTr" style="display: none;">
			<td id="optionCTd1" class="kv-label"></td>
			<td class="kv-content">
				<textarea id="question_optionC" name="optionC" style="width: 90%;height: 120px;">${question.optionC }</textarea>
			</td>
		</tr>
	</table>
</form>